import request from "@/utils/request";

// 查询参数列表
export function listArticle(query) {
  return request({
    url: "/article/list",
    method: "get",
    params: query,
  });
}

// 查询参数列表
export function listPageArticle(data) {
  return request({
    url: "/article/list/page",
    method: "post",
    data: data,
  });
}

// 查询参数详细
export function getArticle(query) {
  return request({
    url: "/article/get",
    method: "get",
    params: query,
  });
}

// 新增参数配置
export function addArticle(data) {
  return request({
    url: "/article/add",
    method: "post",
    data: data,
  });
}

// 修改参数配置
export function updateArticle(data) {
  return request({
    url: "/article/update",
    method: "post",
    data: data,
  });
}

// 删除参数配置
export function delArticle(articleId) {
  return request({
    url: "/article/" + articleId,
    method: "delete",
  });
}
